package cn.ilovese.collect.datamapper.report;

import cn.ilovese.collect.po.report.ReportHistoryVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReportHistoryVersionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ReportHistoryVersion record);

    int insertSelective(ReportHistoryVersion record);

    ReportHistoryVersion selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ReportHistoryVersion record);

    int updateByPrimaryKey(ReportHistoryVersion record);

    int updateByOldReportId(@Param(value = "old_report_id") Integer old_report_id, @Param(value = "latest_report_id") Integer latest_report_id);

    List<ReportHistoryVersion> selectByLatestReportId(Integer latest_report_id);
}